import { _decorator, Component, Node } from 'cc';
import { StorageSystem } from '../../Init/SystemStorage/StorageSystem';
const { ccclass, property } = _decorator;

@ccclass('LvupGuide')
export class LvupGuide extends Component {
    @property(Node)
    fingers: Node[] = [];

    isGuide = false;
    onEnable() {
        this.isGuide = StorageSystem.getData().levelAssets.curLv == 2;
        this.fingers.forEach(e => {
            e.active = this.isGuide;
        })
    }

    onCloseClick() {
        if (!this.isGuide) return;
        this.fingers.forEach(e => {
            e.active = false;
        })
    }

}

